<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>抄表看板</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/analysis_historyfeesummary.css" />
    <link rel="stylesheet" type="text/css" href="css/customerservicelist.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="css/analysis_equipment_frm.css" />
    <style>

    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div v-on:click="doHideSearch()" v-if="showsearch" class="maskbg">
        </div>
        <div v-if="showsearchparam" class="searchparam nomenu" style="height: 70%;">
            <div class="searchcontent" style="height: 100%;">
                <div class="searchparamtitle" v-if="form.ProjectCompanyType==1">
                    项目名称
                </div>
                <div class="searchparamitem" v-if="form.ProjectCompanyType==1">
                    <label v-on:click="doSelectProject(item.ID,item.Name)"
                        v-bind:class="{'active':form.ProjectIDs.indexOf(item.ID)>-1}"
                        v-for="item in projectList">{{item.Name}}</label>
                </div>
            </div>
        </div>
        <div class="search_box fixedbox bgshadow" v-bind:class="{'fixedbox':showsearch}">
            <div class="searchitem" v-bind:class="{'chkedbox':showsearchparam}" v-on:click="doSelectSearchParam(1)">
                筛选
                <i v-if="!showsearchparam" class="icon iconfont icon-down"></i>
                <i v-if="showsearchparam" class="icon iconfont icon-shangjiantou" style="color:#fff;"></i>
            </div>
            <div id="datemonth" data-options='{"type":"month"}' class="searchitem"
                v-bind:class="{'chkedbox':showsearchmonth}" v-on:click="doSelectSearchParam(2)">
                {{form.activeDateDesc}}
                <i v-if="!showsearchmonth" class="icon iconfont icon-down"></i>
                <i v-if="showsearchmonth" class="icon iconfont icon-shangjiantou" style="color:#fff;"></i>
            </div>
        </div>
        <div class="aui-content" style="margin-top: 2.3rem;">
            <div class="newcontentbox">
                <label class="bababa"> {{ProjectName}} </label>
                <label class="lr-line"> | </label>
                <label class="bababa"> {{form.startMonth}} 统计 </label>
            </div>

            <div class="boxarea mainbox " style="padding: 0;">
                <van-row style="border-bottom: solid 1px #eee;padding: 15px 20px 10px;">
                    <van-col span="12">本月抄表进度</van-col>
                    <van-col span="12" class="text-right">
                        <van-tag class="aui-margin-l-5" style="padding: 3.5px 5px;"
                            v-on:click="onClickMeterType(itemtype)" v-for="itemtype in meterTypeList" round
                            type="primary" v-bind:color="itemtype.id==metertype?'#289FFF':'#ddd'"
                            v-bind:text-color="itemtype.id==metertype?'#fff':'#999'">
                            <span class="aui-font-size-12 aui-padded-l-5 aui-padded-r-5">{{itemtype.name}}</span>
                        </van-tag>
                    </van-col>
                </van-row>
                <div class="aui-row list-content" style="padding: 0 20px 20px;">
                    <div class="noinfo aui-padded-t-15 aui-padded-b-15" id="noorder" v-if="list.length<=0">
                        <img src="../image/index/noinfomsg_icon.png" alt="" />
                        <h5><br />暂无相关数据</h5>
                    </div>
                    <div v-if="list.length>0" v-for="items in list">
                        <div class="work_con_box_name marginheight">
                            <div class="work_con_box_left" style="width:60%">
                                <i v-if="items.MeterCategoryID==1" class="icon iconfont  icon-shuibiao aui-margin-r-5"
                                    style="color: #289FFF;"></i>
                                <i v-if="items.MeterCategoryID==2" class="icon iconfont  icon-dianbiao aui-margin-r-5"
                                    style="color: coral;"></i>
                                <i v-if="items.MeterCategoryID==3" class="icon iconfont  icon-qibiao aui-margin-r-5"
                                    style="color: red;"></i>
                                <span style="color: #000;">{{items.Name}}</span>
                                <span class="text-grey">{{items.Count}}块</span>
                            </div>
                            <div class="work_con_box_right text-right" style="width:38%">
                                <label class="text-grey">未抄：<span style="color:coral;">{{items.NoWrite}}</span>块</label>
                            </div>
                        </div>
                        <div class="work_con_box_time marginheight aui-margin-t-0">
                            <div class="work_con_box_right" style="width: 100%;">
                                <div class="prograssbg">
                                    <div class="prograssmsg"
                                        v-bind:style="{'width':(((items.Count-items.NoWrite)/items.Count)*100).toFixed(2)+'%'}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!--底部弹出年月选择-->
        <van-popup v-model:show="showsearchmonth" round position="bottom" :style="{ height: '40%' }">
            <van-datetime-picker v-model="currentDate" type="year-month" title="选择月份" :min-date="minDate"
                :max-date="maxDate" @cancel="doHideSearch" @confirm="onConfirm" :formatter="formatter" />
        </van-popup>

        <div v-if="list.length>0" class="bottom">
            <div class="aui_bottombtn" v-on:click="do_ReadMeter()">
                <span>开始抄{{btnName}}</span>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/page/dateRangeUtil.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript" src="js/meterwritemultiple.js"></script>

</html>